package com.hyt.it.ogt.download.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 考生抓拍照片
 * @author 刘恒活
 * @since 2020/8/29 14:47
 */
@TableName("kw_monitor_photo")
@Data
public class MonitorPhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "examId")
    private String examId;

    @ApiModelProperty(value = "考生ID")
    private String examCandidateId;

    @ApiModelProperty(value = "照片地址")
    private String photoUrl;

    @ApiModelProperty(value = "照片来源：0表示来自PC端，1表示来自app")
    private Integer photoFrom;

    @ApiModelProperty(value = "照片类型（0:身份验证照片，1:考生端登录手动拍的第一张照片，2:移动端拍照照片，3:抓拍照片），4-app比对照片")
    private Integer photoType;

    @ApiModelProperty(value = "如该照片未分析或者只有一人且未进行换人分析，则该字段为空，否则有值")
    @TableField("analyse_result")
    private String analyseResult;

    @ApiModelProperty(value = "照片人数")
    @TableField("photo_person_number")
    private Integer photoPersonNumber;

    @ApiModelProperty(value = "是否正在分析，0：是，1：否")
    @TableField("is_analysing")
    private Integer analysing;

    @ApiModelProperty(value = "只有当photoPersonNumber为1时才分析，空或者N:表示未做换人分析,Y:已作分析")
    private String changeAnalyse;

    @ApiModelProperty(value = "记录调用tps识别次数")
    private Integer retryNumber;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private LocalDateTime createDate;
}
